package com.qk.my.pojos;

import java.util.List;

public class Player {
	private int id;
	private String name;
	private int score;
	private String username;
	private String password;
	private List<Answer> answers;
	private List<Question> questions;

	public List<Answer> getAnswers() {
		return answers;
	}

	public void setAnswers(List<Answer> answers) {
		this.answers = answers;
	}

	public List<Question> getQuestions() {
		return questions;
	}

	public void setQuestions(List<Question> questions) {
		this.questions = questions;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		String str = "Player [id=" + id + ", name=" + name + ", score=" + score + ", username=" + username
				+ ", password=" + password + "]\r";
		for (Question question : questions) {
			str += "    " + question.toString() + "\r";
		}
		for (Answer answer : answers) {
			str += "    " + answer.toString() + "\r";
		}

		return str;
	}

}
